package com.itheima.day11;

import java.io.File;

/*
在某个目录下创建2000级别目录
 */
public class Test02 {

    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        File dir = new File("D:\\dir");
        for (int i = 0; i < 2000; i++) {
            dir = new File(dir, i + "");
            dir.mkdirs();
        }
        long end = System.currentTimeMillis();
        System.out.println("创建完毕耗时:"+(end-start));

    }

}
